package com.dz.lm.dao.comment.read;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dz.lm.common.dto.CommentDTO;
import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.ReaderRepository;

@ReaderRepository("readCommentDao")
public interface CommentDao {
	
	List<CommentDTO>ListComment()throws DaoException;
	
	CommentDTO selectByPrimaryKey(@Param("CommentId") Integer CommentId)throws DaoException;

    /**
     * 获取用户的历史评论列表
     */
    List<Map<String, Object>> qryCommentsByUserId(Map<String, Object> qryParam) throws DaoException;
    /**
     * 获取用户的历史评论总数
     */
    Integer qryCommentsByUserIdCount(Map<String, Object> qryParam) throws DaoException;
    
    List<Map<String, Object>> qryCommentsByProductId(Map<String, Object> qryParam) throws DaoException;
    
    List<Map<String, Object>> qryCommentsByAgentProductId(Map<String, Object> qryParam) throws DaoException;
}
